var Mock = require('Mockjs');

function score(req, res) {
  var data = Mock.mock({
    "code":200,
    "body":{

    },
    "message":null,
    "exceptionDescription":null
  });
  res.send(data);
}

function center(req, res) {
  var data = Mock.mock({
    "code":200,
    "body|1-10":[
      {
        "title":'@date(yyyy)~@date(yyyy)学年 上学期 累计数据',
        "freeLength|0-300.0-2":1,
        "morningValid|1-20":1,
        "activityScore|0-20.0-2":1,
        "morningExercise|0-20":1
      }
    ],
    "message":null,
    "exceptionDescription":null
  });
  res.send(data);
}

function morningEx(req, res) {
  var data = Mock.mock({
    "code":200,
    "body":{
      //每天上午6：00~9：00之间到达指定地点后签到并开始锻炼，时长达到30分钟后在指定地点签退结束，记一次有效晨练；签到后1小时内未签退视为无效。
      "start":'@time',
      "end":'@time',
      "timeLength|20-90":20,
      "timeout|1-8":1,
      "recordTime":'@datetime',
      "locations|1-10":[
        {
          "latitude|1-34.1-11":34.19353287726,
          "longitude|1-108.1-11":108.87735493126564,
        }
      ]
    },
    "message":null,
    "exceptionDescription":null
  });
  res.send(data);
}

module.exports.center = center;
module.exports.score = score;
module.exports.morningEx = morningEx;
